package com.imooc.enums;

import lombok.Getter;

/**
 * Create By Liuqz
 *
 * @date 2018/6/2 21:03
 */
@Getter
public enum ResultEnum {

    SUCCESS(0 , "成功"),

    PRODUCT_NOT_EXIST(100, "商品不存在"),

    PRODUCT_STOCK_ERROR(101, "库存不足"),

    ORDER_NOT_EXIST(102, "订单不存在"),

    ORDERDETAIL_NOT_EXIST(103, "订单详情不存在"),

    ORDER_STATUS_ERROR(104, "订单状态异常"),

    ORDER_UPDATE_FAIL(105, "订单更新失败"),

    ORDER_DETAIL_EMPITY(106, "订单详情为空"),

    ORDER_PAY_STATUS_ERROR(107, "订单支付状态异常"),

    CART_EMPITY(108,"购物车不能为空"),

    ORDER_OWNER_ERROR(109, "该订单不属于当前用户"),

    WECHAT_MP_ERROR(110, "微信公众账号错误"),

    WXPAY_NOTIFY_MONEY_VERIFY_ERROR(111, "微信支付异步通知金额校验不通过"),

    ORDER_CACNCEL_SUCCESS(112, "订单取消成功"),

    ORDER_FINISH_SUCCESS(113, "完结订单成功"),

    PRODUCT_STATUS_ERROR(114, "商品上下架状态异常"),

    LOGIN_FAIL(115, "登陆失败,登陆信息不正确"),

    LOGOUT_SUCCESS(116, "登出成功"),

    PARAM_CODE(201, "表单参数不正确"),


    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
